﻿using System;


namespace eShop.DataAccess.Entity
{
    public class OrderItem
    {
        #region Constructor
        public OrderItem()
        {
        }
        public OrderItem(Int32 orderId, Int32 productId, String productName, String productCode, String productDescription, String productDefaultImage, Int32 stockId, String stockDescription, Double unitPrice, Double unitWeight, Int32 quantity)
        {
            OrderId = orderId;
            ProductId = productId;
            ProductName = productName;
            ProductCode = productCode;
            ProductDescription = productDescription;
            ProductDefaultImage = productDefaultImage;
            StockId = stockId;
            StockDescription = stockDescription;
            UnitPrice = unitPrice;
            UnitWeight = unitWeight;
            Quantity = quantity;
        }
        #endregion


        #region private variables
        public Int32 Id { get; set; }
        public Int32 OrderId { get; set; }
        public Int32 ProductId { get; set; }
        public String ProductName { get; set; }
        public String ProductCode { get; set; }
        public String ProductDescription { get; set; }
        public String ProductDefaultImage { get; set; }
        public Int32 StockId { get; set; }
        public String StockDescription { get; set; }
        public Double UnitPrice { get; set; }
        public Double UnitWeight { get; set; }
        public Int32 Quantity { get; set; }
        #endregion
    }
}

